import * as OVirt from './oVirt.js';
import * as Vmware from './vmware.js';
import * as Main from '../ui/main.js';
+import {logErrorUnlessCancelled} from '../misc/errorUtils.js';
import {loadInterfaceXML} from '../misc/fileUtils.js';
import * as Params from '../misc/params.js';
import * as SmartcardManager from '../misc/smartcardManager.js';
await this._handlePendingMessages();
this._userVerifier.call_answer_query(serviceName, answer, this._cancellable, null);
} catch (e) {
- if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
- logError(e);
+ logErrorUnlessCancelled(e);
}
}
this._retry(serviceName);
}
} catch (e) {
- if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
- logError(e);
+ logErrorUnlessCancelled(e);
}
}
import * as Signals from './signals.js';
import * as BoxPointer from '../ui/boxpointer.js';
+import {logErrorUnlessCancelled} from './errorUtils.js';
import * as IBusCandidatePopup from '../ui/ibusCandidatePopup.js';
}
this._updateReadiness();
} catch (e) {
- if (e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
- return;
-
- logError(e);
- this._clear();
+ if (logErrorUnlessCancelled(e))
+ this._clear();
}
}
await this._ibus.request_name_async(IBus.SERVICE_PANEL,
IBus.BusNameFlag.REPLACE_EXISTING, -1, this._cancellable);
} catch (e) {
- if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) {
- logError(e);
+ if (logErrorUnlessCancelled(e))
this._clear();
- }
return;
}
this._MAX_INPUT_SOURCE_ACTIVATION_TIME,
this._cancellable);
} catch (e) {
- if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
- logError(e);
+ logErrorUnlessCancelled(e);
}
}
import GObject from 'gi://GObject';
import IBus from 'gi://IBus';
+import {logErrorUnlessCancelled} from './errorUtils.js';
import * as Keyboard from '../ui/status/keyboard.js';
import * as Main from '../ui/main.js';
this._context = await this._ibus.create_input_context_async(
'gnome-shell', -1, this._cancellable);
} catch (e) {
- if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) {
- logError(e);
+ if (logErrorUnlessCancelled(e))
this._clear();
- }
return;
}